//
//  DemoCollectionViewCell.swift
//  JLUIKit_Example
//
//  Created by Jiang Chencheng on 2024/8/15.
//  Copyright © 2024 CocoaPods. All rights reserved.
//

import JLUIKit
import Chain
import SnapKit

class DemoCollectionViewCell: JLCollectionViewCell {
    
    lazy var textLabel = UILabel()
        .x
        .text("DEMO")
        .font(.systemFont(ofSize: 12))
        .textColor(.black)
        .instance
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        layoutUI()
    }
    
}

private extension DemoCollectionViewCell {
    
    func layoutUI() {
        textLabel.x.add(to: contentView).snp.makeConstraints {
            $0.center.equalToSuperview()
        }
    }
    
}
